/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package main.models;

import java.util.ArrayList;
import main.game.GameConventions;

/**
 *
 * @author Ariman
 */
public class CreatedGame {

    private Long UID;
    private ArrayList<Player> players;
    private GameConventions conventions;

    public CreatedGame() {
        players = new ArrayList<Player>();
    }

    public Long getUID() {
        return UID;
    }

    public void setUID(Long UID) {
        this.UID = UID;
    }

    public ArrayList<Player> getPlayers() {
        return players;
    }

    public void setPlayers(ArrayList<Player> players) {
        this.players = players;
    }

    public void addPlayer(Player player) {
        if (!players.contains(player)) {
            players.add(player);
        } else {
            // exeption
        }
    }

    public void removePlayer(Player player) {
        if (players.contains(player)) {
            players.remove(player);
        } else {
            // exeption
        }
    }

    public GameConventions getConventions() {
        return conventions;
    }

    public void setConventions(GameConventions conventions) {
        this.conventions = conventions;
    }
    
    
}
